<!DOCTYPE html>
<html>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<!--导入bootstrap的csswenjian -->
<link rel="stylesheet" href="bootstrap3/css/bootstrap.min.css">
<!--导入jquery—-->
<script src="bootstrap3/jquery.js" type="text/javascript" charset="utf-8"></script>
<!--导入bootstrap的js文件-->
<script src="bootstrap3/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<style>
    /*将所有标签边距去掉*/
    * {
        padding: 0px;
        margin: 0px;
    }

    html, body {
        width: 100%;
        height: 100%;
    }

    .container-fluid {
        height: 100%;
        padding: 0px;
    }

    .head {
        height: 155px;
        background-color: lightpink;
        color: white;
        font-size: 16px;
        padding: 0px 15px;
    }

    .img {
        width: 120px;
    }

    .text-right {

    }

    #img1 {
        height: 155px;
    }

    #left {
        width: 250px;
        height: calc(100% - 150px);
        background-color: lightpink;
        float: left;
    }

    #right {
        width: calc(100% - 250px);
        height: calc(100% - 110px);
        background-color: pink;
        float: left;
    }

    iframe {
        width: 100%;
        height: 100%;
        border: none;
    }
</style>
<script>
    $(function () {
        //设置昵称
        $('#admin').html(sessionStorage.getItem("nickName"));

        //退出登录
        $('#logout').click(function () {
            //清理服务器端
            //清理浏览器
            sessionStorage.clear();
            $.ajax({
                url: 'logout',
                type: 'post',
                cache: false,
                data: {},
                dataType: 'json',
                success: function (rst) {
                    alert("退出成功!");
                },
                error: function (err) {
                    alert(err);
                }
            });
            location.href = "921login.html";
        })

        //当前时间
        setInterval(function (){
            $('#now').html("现在是:"+new Date().toLocaleString());
        },1000)
    })
</script>
<body>
<div class="container-fluid">
    <div class="row head">
        <div class="col-sm-4">
            <img id="img1" src="img/熊出没.jpg" class="img-responsive">

        </div>
        <div class="col-sm-2 col-sm-offset-2 text-right">
            <br><br><br><br><br>
            <span class="text-center" id="now">今天是2000 12 20</span>
        </div>
        <div class="col-sm-4  text-right">
            <span id="admin"></span>
            <img class="img" src="img/熊大.jpg" style="margin:15px auto;">
            <input type="button" class="btn btn-danger" id="logout" value="退出">
        </div>

    </div>

    <div id="left">
        <iframe src="menu/menu.html" frameborder="0"></iframe>

    </div>
    <div id="right">
        <iframe src="922welcome.html" frameborder="0" name="cards"></iframe>
    </div>
</div>
</body>
</html>